﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegisterEnterprise.aspx.cs"
    Inherits="lcmyjobs.Web.enprise.RegisterEnterprise" %>

<%@ Register Src="../Controls/Bottom.ascx" TagName="Bottom" TagPrefix="uc1" %>
<%@ Register src="../Controls/Bottom1.ascx" tagname="Bottom1" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>单位会员注册：单位信息&bull;联系方式 </title>
    <link href="../css/h_edu.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/css.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/drag.js" type="text/javascript"></script>
    <script src="../Scripts/city_func.js" type="text/javascript"></script>
    <script src="../Scripts/city_arr.js" type="text/javascript"></script>
    <script src="../Scripts/industry_arr.js" type="text/javascript"></script>
    <script src="../Scripts/industry_func.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_arr.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_func.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function in_array(needle, haystack) {
            if (typeof needle == 'string' || typeof needle == 'number') {
                for (var i in haystack) {
                    if (haystack[i] == needle) {
                        return true;
                    }
                }
            }
            return false;
        }


        function checkname(val) {
            var uname = val.value;
            reg = /^[0-9A-Za-z_]{8,20}$/;
            if (reg.test(uname)) {
                //alert(uname);

                $.ajax({ type: "POST",
                    url: "CheckNameAjax.aspx",
                    data: "name=" + uname + "&t=1",
                    success: function (msg) {
                        if (msg == "0") {
                            $("#div_loginmsg").html("该用户名已被注册！");
                            $("#txtlogin").val("");
                            $("#txtlogin").focus();
                            $("#div_loginmsg").css("color", "#ff6600");
                        }
                        else {
                            //$("#div_loginmsg").html("该用户名可以使用！");
                            //$("#div_loginmsg").css("color","Green");
                        }

                    },
                    error: function (XMLResponse) {
                        alert(XMLResponse.responseText);
                    }
                });

            }
            else {
                $("#txtlogin").focus;
            }
        }

        function checkEmail(val) {
            var uname = val.value;
            reg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
            if (reg.test(uname)) {

                $.ajax({ type: "POST",
                    url: "CheckNameAjax.aspx",
                    data: "name=" + uname + "&t=2",
                    success: function (msg) {
                        if (msg == "0") {
                            $("#div_emailmsg").html("已被注册！");
                            $("#txtemail").val("");
                            $("#txtemail").focus();
                            $("#div_emailmsg").css("color", "#ff6600");
                        }
                        else {
                            //$("#div_emailmsg").html("该邮箱可以使用！");
                            //$("#div_emailmsg").css("color", "Green");
                        }
                    },
                    error: function (XMLResponse) {
                        alert(XMLResponse.responseText);
                    }
                });

            }
            else {
                $("#txtemail").focus;
            }
        }

        function checkpwd(val) {
            var pwd = $("#txtpwd").val();
            var pwdcheck = val.value;

            if (!pwd.equals(pwdcheck)) {
                $("#pwdcheckmsg").val("两次输入密码不一致！");
            }

        }
        function mycht() {
            if ($("#mych:checked").length == 0) { alert('您还没有同意本网站的服务条款！'); return false; }
        }

        function setdz(dz) {
            $("#txtaddress").val(dz);
            $("#txtinterviewadd").val(dz);
        }


    </script>
    <style type="text/css">
        .style3
        {
            color: #ff6600;
        }
        
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="wrapper">
        <div class="top">
            <div class="logo">
            </div>
            <div class="geri">
                单位招聘注册</div>
            <div class="site_title">
                <div class="site_title1">
                </div>
                <div class="site_title2">
                    <ul>
                        <li class="curbar">单位信息&bull;联系方式</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li>单位介绍</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li>发布职位（可多个）</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li>管理中心（找人才）</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="geet">
            <div align="center">
                <span>&nbsp;&nbsp;欢迎注册单位会员!</span>
            </div>
            <div style=" height:18px;"></div>
            <p align="center" >
                <em>友情提示：带*的项目为必填项；虚假的简历将不能通过审核并被及时删除！</em>
            </p>
        </div>
        
        
        <div class="middle">
            <div class="main_data" >
                <!--one-->
                <div class="main_data_title">
                    <h3>
                        单位信息&bull;联系方式</h3>
                </div>
                <br />

                <div class="main_data_list">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">用户帐号：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtlogin" runat="server" onblur="javascript:checkname(this);" 
                                    CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtlogin"
                                    ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtlogin"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="[0-9a-zA-Z_]{8,20}"
                                    Display="Dynamic">格式不对</asp:RegularExpressionValidator>
                                    <span id="div_loginmsg" style=" display:block; color:#ff6600;"></span>
                            </td>
                            <td height="25" width="*" align="left" class="listmsg2">
                                8-20位，可以是字母、数字、下划线的组合
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">设置密码：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtpwd" runat="server" TextMode="Password" CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtpwd"
                                    ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtpwd"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="[0-9a-zA-Z_]{8,10}"
                                    Display="Dynamic">格式不对</asp:RegularExpressionValidator>
                            </td>
                            <td height="25" width="*" align="left" class="listmsg2">
                                8-10位，可以是字母、数字、下划线的组合
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">确认密码</span>：
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtpwdcheck" runat="server" TextMode="Password" CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtpwdcheck"
                                    ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpwd"
                                    ControlToValidate="txtpwdcheck" ErrorMessage="CompareValidator" Display="Dynamic">两次密码不一致</asp:CompareValidator>
                            </td>
                            <td height="25" align="left" class="listmsg2">
                                重新输入密码
                            </td>
                        </tr>
               
                    </table>
                </div>
            </div>
            <!--one结束-->
            <div class="main_data">
                
                <div class="main_data_list">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">单位名称：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtname" runat="server" CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtname"
                                    ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                            <td height="25" width="*" align="left" class="listmsg2">
                                以营业执照上的单位名称为准，不允许用简称
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">所属行业：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txttrade" runat="server" onclick="IndustrySelect()" 
                                    CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txttrade"
                                    ErrorMessage="

所属行业不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                            <td height="25" width="*" align="left" class="listmsg2">
                                最多允许选择3个行业类别
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">所在地区：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txthuji" runat="server" onclick="hukouSelect()" CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txthuji"
                                    ErrorMessage="所在地区不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">单位性质：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:DropDownList ID="ddl_dwxz" runat="server" CssClass="inputText3" Width="78px">
                                    <asp:ListItem>民营</asp:ListItem>
                                    <asp:ListItem>办事处</asp:ListItem>
                                    <asp:ListItem>分公司</asp:ListItem>
                                    <asp:ListItem>合资</asp:ListItem>
                                    <asp:ListItem>外商独资</asp:ListItem>
                                    <asp:ListItem>股份制企业</asp:ListItem>
                                    <asp:ListItem>上市公司</asp:ListItem>
                                    <asp:ListItem>国企</asp:ListItem>
                                    <asp:ListItem>社会团体</asp:ListItem>
                                    <asp:ListItem>事业单位</asp:ListItem>
                                    <asp:ListItem>国家机关</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td height="25" width="*" align="left" class="listmsg2">
                                <span class="style3">重要！</span>请如实选择，否则不能通过网站审核
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">单位规模：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:DropDownList ID="ddldwgm" runat="server" CssClass="inputText3" Width="78px">
                                    <asp:ListItem>10人以下</asp:ListItem>
                                    <asp:ListItem>11-30人</asp:ListItem>
                                    <asp:ListItem>31-100人</asp:ListItem>
                                    <asp:ListItem>101-200人</asp:ListItem>
                                    <asp:ListItem>201-500人</asp:ListItem>
                                    <asp:ListItem>500人以上</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">成立年份：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtclnf" runat="server" CssClass="inputText3" Width="73px"></asp:TextBox>
                                年<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtclnf"
                                    ErrorMessage="成立年份不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtclnf"
                                    Display="Dynamic" ErrorMessage="请输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <!--two结束-->
            <div class="main_data">
                <!--three-->
                <!--
                <div class="mian_job_phone_title">
                    <h3>
                        联系方式</h3>
                </div>
                -->
                <div class="main_data_list">

                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td height="25" class="txtalign">
                                            <span class="style2">*</span><span class="words" >联系人：</span>
                                        </td>
                                        <td height="25" width="330px" align="left">
                                            <asp:TextBox ID="txtlxr" runat="server" CssClass="inputText3" Width="73px"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtlxr"
                                                ErrorMessage="联系人不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                            如果不愿意公开姓名，建议以 <span class="style3">您的姓氏</span> 加 <span class="style3">先生或女士</span> 填写此信息
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="25" class="txtalign">
                                            <span class="style2">*</span><span class="words">固定电话：</span>
                                        </td>
                                        <td height="25" width="*" align="left">
                                            <asp:TextBox ID="txttelephone" runat="server" CssClass="inputText3"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txttelephone"
                                                ErrorMessage="固定电话不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                            <span class="style3">格式</span>：区号-电话，如果没有固话，请填写我就业网服务热线0635-8251515
                                        </td>
                                    </tr>
   
                                    <tr>
                                        <td height="25" class="txtalign">
                                            <span class="words">手机：</span>
                                        </td>
                                        <td height="25" width="*" align="left">
                                            <asp:TextBox ID="txtmobilephone" runat="server" CssClass="inputText3"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtmobilephone"
                        ErrorMessage="RegularExpressionValidator" ValidationExpression="\d{11}" 
                        Display="Dynamic">格式不对</asp:RegularExpressionValidator>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                           <span class="style3">同时联系我们</span>，否则不能通过网站审核
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="25" class="txtalign">
                                            <span class="style2">*</span><span class="words">E-mail：</span>
                                        </td>
                                        <td height="25" width="*" align="left" >
                                            <asp:TextBox ID="txtemail" runat="server" CssClass="inputText3" onblur="javascript:checkEmail(this)"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtemail"
                                                ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                Display="Dynamic">地址不合法</asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtemail"
                                                ErrorMessage="Email不能为空" Display="Dynamic"></asp:RequiredFieldValidator><span id="div_emailmsg"></span>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                          <span style="color:#ff6600;">重要！</span>请输入您的常用邮箱，它将是您重置密码的唯一依据
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="25" class="txtalign">
                                           <span class="words">单位网址：</span>
                                        </td>
                                        <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtwebsite" runat="server" CssClass="inputText3"></asp:TextBox>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="25" class="txtalign">
                                             <span class="style2">*</span><span class="words" >场所：</span>
                                        </td>
                                        <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtplace" runat="server" onblur="javascript:setdz(this.value)" 
                                                CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtplace"
                                    ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                            以营业执照上的住所为准；否则不能通过审核</td>
                                    </tr>
                                    <tr>
                                        <td height="25" class="txtalign">
                                            <span class="style2">*</span><span class="words">单位地址：</span></td>
                                        <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtaddress" runat="server" CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="txtaddress"
                                    ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                            <span class="style3">重要！</span>和营业执照上的住所不一致，应准确详细填写，便于求职者查询 </td>
                                    </tr>
                                    <tr>
                                        <td height="25" class="txtalign">
                                            <span class="style2">*</span><span class="words">面试地址：</span></td>
                                        <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtinterviewadd" runat="server" CssClass="inputText3"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txtinterviewadd"
                                    ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </td>
                                        <td height="25" width="*" align="left" class="listmsg2">
                                          否则不能通过网站审核</td>
                                    </tr>
                                    <tr>
                                        <td height="25"  class="txtalign">
                                        </td>
                                        <td width="*" align="left">
                                        </td>
                                        <td width="*" align="left" class="listmsg2">
                                        </td>
                                    </tr>
                                </table>

                </div>
            </div>
            <!--three结束-->
        </div>
        <div style="text-align:center; padding-left:80px">
            <input id="mych" type="checkbox" checked="checked" style="padding-right:6px;" /></span><span>&nbsp;我已经阅读并同意我就业网的<a href="../service.html" style="color: #315AAA;padding-left:6px; padding-right:100px;" target="_blank">服务声明</a>
        </div>
                    
        <div class="button">
            <asp:Button ID="btn_save" runat="server" Text="保  存" OnClick="btn_save_Click" 
                CssClass="btn" OnClientClick="return mycht()" />
        </div>
        <!--底部-->

        <!--底部-->
        <uc2:Bottom1 ID="Bottom11" runat="server" />
    </div>
     
    <div style="display: none" id="maskLayer">
        <iframe style="filter: alpha(opacity=50)" id="maskLayer_iframe" src="about:blank"
            frameborder="0" scrolling="no"></iframe>
        <div style="filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5" id="alphadiv">
        </div>
        <div id="drag">
            <h3 id="drag_h">
            </h3>
            <div id="drag_con">
            </div>
            <!-- drag_con end -->
        </div>
    </div>
    <!-- maskLayer end -->

    </form>
    <!-- alpha div end -->
    <div style="display: none" id="sublist">
    </div>
</body>
</html>
<div>
    <script type="text/javascript" src="../Scripts/nationality_func.js"></script>
    &nbsp;<input id="nation" type="hidden" name="nation"></div>

